package com.zhika.zishi.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.zhika.zishi.R;
import com.zhika.zishi.customview.TitleView;
import com.zhika.zishi.interfaces.TitleInterface;

/**
 * Created by shi-02 on 2015/4/27.
 */
public class SubmitStrategy2Activity extends BaseActivity {

    private TitleView titleView;

    //添加频道的布局
    private RelativeLayout addChannelLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.submit_strategy_2_layout);

        initView();
    }

    private void initView(){
        titleView = (TitleView) findViewById(R.id.submit_strategy_2_title_view);
        titleView.setLeftButtonText("返回");
        titleView.setMiddleRowText("添加标题/频道");
        titleView.setRightButtonText("发布");
        titleView.setTitleViewInterface(new TitleInterface() {
            @Override
            public void leftTitleListener() {
                finish();
            }

            @Override
            public void middleTitleListener() {

            }

            @Override
            public void rightTitleListener() {

            }
        });

        addChannelLayout = (RelativeLayout) findViewById(R.id.submit_strategy_2_add_channel_layout);
        addChannelLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SubmitStrategy2Activity.this,EditChannelActivity.class);
                startActivity(intent);
            }
        });
    }
}
